using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;
using ServerFramework.Implementation.Database.Domain;

namespace ServerFramework.Implementation.Database.Mapping {
    
    
    public class ServerpeerMap : ClassMap<ServerPeer_T> {
        
        public ServerpeerMap() {
            Schema("mseconfig");
			Table("serverpeers");
			Id(x => x.Peerid).Column("PeerId");
			Map(x => x.Localservertype).Column("LocalServerType").Not.Nullable();
			Map(x => x.Remoteservertype).Column("RemoteServerType").Not.Nullable();
			Map(x => x.Connected).Column("Connected").Not.Nullable();
			Map(x => x.Localip).Column("LocalIP").Not.Nullable();
			Map(x => x.Localport).Column("LocalPort").Not.Nullable();
			Map(x => x.Remoteip).Column("RemoteIP").Not.Nullable();
			Map(x => x.Remoteport).Column("RemotePort").Not.Nullable();
        }
    }
}
